﻿namespace YidanSoft.Library.EditorUtility.Menus
{
    using System;
    using System.Drawing;
    using YidanSoft.Library.EditorUtility.General;

    public class ColorGroup
    {
        private Color bgcolor;
        private Color bordercolor;
        private Color darkselectioncolor;
        private Color selectioncolor;
        private Color stripecolor;

        public ColorGroup(Color bgcolor, Color stripecolor, Color selectioncolor, Color bordercolor, Color darkselectioncolor)
        {
            this.bgcolor = bgcolor;
            this.stripecolor = stripecolor;
            this.selectioncolor = selectioncolor;
            this.bordercolor = bordercolor;
            this.darkselectioncolor = darkselectioncolor;
        }

        public static ColorGroup GetColorGroup()
        {
            Color vSNetBackgroundColor = ColorUtil.VSNetBackgroundColor;
            Color vSNetSelectionColor = ColorUtil.VSNetSelectionColor;
            return new ColorGroup(vSNetBackgroundColor, ColorUtil.VSNetControlColor, vSNetSelectionColor, ColorUtil.VSNetBorderColor, ColorUtil.VSNetPressedColor);
        }

        public Color bgColor
        {
            get
            {
                return this.bgcolor;
            }
        }

        public Color borderColor
        {
            get
            {
                return this.bordercolor;
            }
        }

        public Color darkSelectionColor
        {
            get
            {
                return this.darkselectioncolor;
            }
        }

        public Color selectionColor
        {
            get
            {
                return this.selectioncolor;
            }
        }

        public Color stripeColor
        {
            get
            {
                return this.stripecolor;
            }
        }
    }
}

